package com.qixin.api.bean;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 资金明细表
 * </p>
 *
 * @author 吕正睿
 * @since 2018-11-16
 */
@TableName("com_money_info")
public class ComMoneyInfo extends Model<ComMoneyInfo> {

    private static final long serialVersionUID = 1L;

	private Long id;
    /**
     * 创建时间
     */
	@TableField("creat_time")
	private String creatTime;
    /**
     * 分配金额
     */
	private Double addmoney;
    /**
     * 平台用户
     */
	@TableField("toele_user_name")
	private String toeleUserName;
    /**
     * 企业ID
     */
	@TableField("pt_id")
	private Long ptId;
    /**
     * 回收金额
     */
	private Double offmoney;

	/**
	 * 企业名称
	 * @return
	 */
	@TableField(exist = false)
	private String ptName;

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public BigDecimal getMoney() {
		return moeny;
	}

	public void setMoney(BigDecimal money) {
		this.moeny = money;
	}

	/**
	 * 该企业余额
	 */
	@TableField(exist = false)
	private BigDecimal moeny;
	/**
	 * 账户
	 */
	@TableField(exist = false)
	private String userName;

	public String getPtName() {
		return ptName;
	}

	public void setPtName(String ptName) {
		this.ptName = ptName;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getCreatTime() {
		return creatTime;
	}

	public void setCreatTime(String creatTime) {
		this.creatTime = creatTime;
	}

	public Double getAddmoney() {
		return addmoney;
	}

	public void setAddmoney(Double addmoney) {
		this.addmoney = addmoney;
	}

	public String getToeleUserName() {
		return toeleUserName;
	}

	public void setToeleUserName(String toeleUserName) {
		this.toeleUserName = toeleUserName;
	}

	public Long getPtId() {
		return ptId;
	}

	public void setPtId(Long ptId) {
		this.ptId = ptId;
	}

	public Double getOffmoney() {
		return offmoney;
	}

	public void setOffmoney(Double offmoney) {
		this.offmoney = offmoney;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "ComMoneyInfo{" +
				"id=" + id +
				", creatTime='" + creatTime + '\'' +
				", addmoney=" + addmoney +
				", toeleUserName='" + toeleUserName + '\'' +
				", ptId=" + ptId +
				", offmoney=" + offmoney +
				", ptName='" + ptName + '\'' +
				", moeny=" + moeny +
				", userName='" + userName + '\'' +
				'}';
	}
}
